# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=qlcplus
pkgver=4.13.1
pkgrel=0
pkgdesc="The open DMX lighting desk software for controlling professional lighting fixtures"
url="https://qlcplus.org/"
arch="all"
license="Apache-2.0"
makedepends="
	alsa-lib-dev
	bash
	desktop-file-utils
	fftw
	libftdi1-dev
	libmad-dev
	libsndfile-dev
	libudev-zero-dev
	qt5-qtmultimedia-dev
	qt5-qtscript-dev
	qt5-qtserialport-dev
	qt5-qttools-dev
	shared-mime-info
	"
checkdepends="py3-lxml"
subpackages="$pkgname-doc $pkgname-libs"
source="https://github.com/mcallegari/qlcplus/archive/QLC+_$pkgver.tar.gz"
builddir="$srcdir/qlcplus-QLC-_$pkgver"
options="!check" # requires desktop environment

build() {
	./translate.sh ui

	qmake-qt5
	make
}

check() {
	make check
}

package() {
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="
63403d92ea7abeee9b3c8fdd71c64a906b04ea76fe4805087a34ce6b8a57be99725eab93bbe95b2793977ef3a3dd8803bcf9771decc00ec3d8514da7f0e82598  QLC+_4.13.1.tar.gz
"
